from sklearn.svm import SVC
from sklearn.datasets import load_iris
import joblib

x, y =load_iris(return_X_y=True)

# clf = SVC().fit(x, y)
# print(clf.score(x, y))
#
# #保存model
# joblib.dump(clf, 'svc.pkl')

clf2 = joblib.load('svc.pkl')
print(clf2.score(x, y))